import pytest
from tools.myLogger import logger
import os
import time

if __name__ == '__main__':
    logger.info("开始运行UI自动化测试用例".center(50, "*"))
    pytest.main()
    logger.info("UI自动化测试用例运行完成".center(50, "*"))
    logger.info("生成测试报告".center(50, "*"))
    os.system(r'allure generate .\report\json_data\ -o .\report\{} --clean'.format(time.time()))